package cn.dglydrpy.eshop.website;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * 自定义事件
 */
@Getter
@Setter
public class MyEvent extends ApplicationEvent {
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    private String msg;

    public MyEvent(Object source,String msg) {
        super(source);
        this.msg = msg;
    }
}
